﻿@{
    Layout = "~/Views/Shared/_LayoutWiki.cshtml";
}

<h2>宝宝信息相关内容</h2>

<div class="item">
    <h3>根据会员编号获取宝宝信息</h3>

    <p>请求说明</p>
    <p>http请求方式: get</p>
    <p>http://hub.engnice.com/scrm/baby/query</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>memberid</td>
            <td>是</td>
            <td>会员编号</td>
        </tr>
    </table>

    <p>返回说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>类型</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>data</td>
            <td>json</td>
            <td>明细列表</td>
        </tr>
        <tr>
            <td>data[x].ID</td>
            <td>int</td>
            <td>宝宝编号</td>
        </tr>
        <tr>
            <td>data[x].MemberID</td>
            <td>int</td>
            <td>会员编号</td>
        </tr>
        <tr>
            <td>data[x].Name</td>
            <td>string</td>
            <td>宝宝姓名</td>
        </tr>
        <tr>
            <td>data[x].Gender</td>
            <td>string</td>
            <td>宝宝性别</td>
        </tr>
        <tr>
            <td>data[x].NickName</td>
            <td>string</td>
            <td>宝宝昵称</td>
        </tr>
        <tr>
            <td>data[x].BirthDay</td>
            <td>datetime</td>
            <td>宝宝出生日期</td>
        </tr>
        <tr>
            <td>data[x].Remark</td>
            <td>string</td>
            <td>宝宝描述信息</td>
        </tr>
        <tr>
            <td>data[x].IncludeDate</td>
            <td>datetime</td>
            <td>更新时间</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>根据编号获取宝宝信息</h3>

    <p>请求说明</p>
    <p>http请求方式: get</p>
    <p>http://hub.engnice.com/scrm/baby/get</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>id</td>
            <td>是</td>
            <td>宝宝编号</td>
        </tr>
    </table>

    <p>返回说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>类型</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>ID</td>
            <td>int</td>
            <td>宝宝编号</td>
        </tr>
        <tr>
            <td>MemberID</td>
            <td>int</td>
            <td>会员编号</td>
        </tr>
        <tr>
            <td>Name</td>
            <td>string</td>
            <td>宝宝姓名</td>
        </tr>
        <tr>
            <td>Gender</td>
            <td>string</td>
            <td>宝宝性别</td>
        </tr>
        <tr>
            <td>NickName</td>
            <td>string</td>
            <td>宝宝昵称</td>
        </tr>
        <tr>
            <td>BirthDay</td>
            <td>datetime</td>
            <td>宝宝出生日期</td>
        </tr>
        <tr>
            <td>Remark</td>
            <td>string</td>
            <td>宝宝描述信息</td>
        </tr>
        <tr>
            <td>IncludeDate</td>
            <td>datetime</td>
            <td>更新时间</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>添加宝宝信息</h3>

    <p>请求说明</p>
    <p>http请求方式: post/form</p>
    <p>http://hub.engnice.com/scrm/baby/insert</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>memberid</td>
            <td>是</td>
            <td>会员编号</td>
        </tr>
        <tr>
            <td>name</td>
            <td>是</td>
            <td>宝宝姓名</td>
        </tr>
        <tr>
            <td>gender</td>
            <td>是</td>
            <td>宝宝性别</td>
        </tr>
        <tr>
            <td>nickname</td>
            <td>是</td>
            <td>宝宝昵称</td>
        </tr>
        <tr>
            <td>birthday</td>
            <td>是</td>
            <td>宝宝生日</td>
        </tr>
        <tr>
            <td>remark</td>
            <td>是</td>
            <td>描述信息</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>修改宝宝信息</h3>

    <p>请求说明</p>
    <p>http请求方式: post/form</p>
    <p>http://hub.engnice.com/scrm/baby/update</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>id</td>
            <td>是</td>
            <td>宝宝编号</td>
        </tr>
        <tr>
            <td>memberid</td>
            <td>是</td>
            <td>会员编号</td>
        </tr>
        <tr>
            <td>name</td>
            <td>是</td>
            <td>宝宝姓名</td>
        </tr>
        <tr>
            <td>gender</td>
            <td>是</td>
            <td>宝宝性别</td>
        </tr>
        <tr>
            <td>nickname</td>
            <td>是</td>
            <td>宝宝昵称</td>
        </tr>
        <tr>
            <td>birthday</td>
            <td>是</td>
            <td>宝宝生日</td>
        </tr>
        <tr>
            <td>remark</td>
            <td>是</td>
            <td>描述信息</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>删除宝宝信息</h3>

    <p>请求说明</p>
    <p>http请求方式: post/form</p>
    <p>http://hub.engnice.com/scrm/baby/delete</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>id</td>
            <td>是</td>
            <td>宝宝编号</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>根据会员编号删除宝宝信息</h3>

    <p>请求说明</p>
    <p>http请求方式: post/form</p>
    <p>http://hub.engnice.com/scrm/baby/deletebymemberid</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>memberid</td>
            <td>是</td>
            <td>会员编号</td>
        </tr>
    </table>
</div>